-- GENERATED SPELL FOR [Mana Wraith] --


function spell0_18864(pUnit, Event) --@Devour Mana,n/a--
pUnit:FullCastSpellOnTarget(29054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18864', 2000, 1)
end

function Sorts_18864(pUnit, Event)
local choix_sorts_18864 = math.random(0, 0)
if choix_sorts_18864 == 0 then
pUnit:RegisterEvent('spell0_18864', 1, 1)
end
end

function mob18864_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18864', math.random(1500, 3000), 1)
end

function mob18864_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18864_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18864_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18864, 1, 'mob18864_Action')
RegisterUnitEvent(18864, 2, 'mob18864_Leave')
RegisterUnitEvent(18864, 3, 'mob18864_Kill')
RegisterUnitEvent(18864, 4, 'mob18864_Die')
